package com.hjy.mapper;

import com.hjy.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CategoryMapper {

    @Select("select * from mall_category where id = #{id}")
    Category findById(@Param("id")Integer id);

    Category queryById(Integer id);

    List<Category> selectAll();
}
